package com.job.Gai_Yian.Homework0714;

import java.util.Random;
import java.util.UUID;

/**
 * @author Gai_Yian
 * @version 1.0
 * @since 2022-07-15 00:27:43
 */
public class UseRan1 {
    public static void main(String[] args) {
        Random ran=new Random();
        String fileName="面对对象总结.doc";
        for (int i=1;i<=10;i++){
            String unipueName= UUID.randomUUID().toString()+fileName;
            System.out.println(unipueName);
        }


        String[] names={"张三","李四","王五","赵六"};
        for (int i=1;i<=3;i++){
            System.out.println("第"+i+"次幸运者"+names[ran.nextInt(names.length)]);
        }
    }
}
